﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cinemax.DAO;
using Cinemax.DTO;
namespace Cinemax.UserControls
{
    public partial class wuc_update_promotion : System.Web.UI.UserControl
    {
        public List<KhuyenMaiDTO> dsKhuyenMai = new List<KhuyenMaiDTO>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["makm"]!=null && Request.QueryString["tlgm"]!=null)
            {
                int makm = int.Parse(Request.QueryString["makm"]);
                int tlgm = int.Parse(Request.QueryString["tlgm"]);
                KhuyenMaiDAO.updatepromotion(makm, tlgm);
            }

            dsKhuyenMai = KhuyenMaiDAO.getAllPromotion();
        }
    }
}